<?php 
 /**
  * 
  */
 class Locationcat extends CI_Controller {
     
     function __construct() {
     	 parent::__construct();
         $this->load->model('locationcat_model');
     }
	 function getall(){
	 	$array = $this->locationcat_model->getall();
		//print_r($array);
		print(json_encode($array));
	 }
 }
 
?>